
export interface tLogEntity {
  className?: string;
  methodName?: string;
  params?: string;
  exeuTime?: string;
  createTime?: string;
  userName?: string;
  ip?: string;
  url?: string;
}




export interface AccessMenuResult {
success: boolean;
code: number;
message: string;
data: {
data:  tLogEntity[];
};
}


import { baseRequestClient, requestClient } from '#/api/request';



/**
* 分页object列表
* @param params 查询参数
*/
export async function listApi(params: Record<string, any>) {
const res = await requestClient.get<{ page: any }>('log/list', { params });
return res;
}
 /**
  * 新增object
  */
  export async function addApi(data: Partial<tLogEntity>) {
    const res = await requestClient.post('log/save', data);
    return res;
    }

    /**
    * 更新object
    */
    export async function updateApi(data: Partial<tLogEntity>) {
      const res = await requestClient.post('log/update', data);
      return res;
      }

      /**
      * 批量更新object
      */
      export async function updateBatchApi(dataList: tLogEntity[]) {
      const res = await requestClient.post('log/updateBs', dataList);
      return res;
      }

      /**
      * 删除object
      */
      export async function deleteApi(ids: any) {
      const res = await requestClient.delete('log/delete', ids);
      return res;
      }